<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>23-字符串方法</title>
	</head>
	<body>
		<script type="text/javascript">
			//concat
			var str = '中国';
			console.log(str.concat('西安'));
			
			var str1 = '张端阳在享受空调!'
			//substr('截取的起始位置', '截取几个字符');\
			console.log(str1.substr(6,2));//空调
			
			//replace替换
			console.log(str1.replace('张端阳','李宝莉'));
		</script>
	</body>
</html>
